
class ConfigObj {
    String configCode;
    String configName;
    String configVal;
    int id;
    String orgCode;
    int tenentId;

    ConfigObj({this.configCode, this.configName, this.configVal, this.id, this.orgCode, this.tenentId});

    factory ConfigObj.fromJson(Map<String, dynamic> json) {
        return ConfigObj(
            configCode: json['configCode'], 
            configName: json['configName'], 
            configVal: json['configVal'], 
            id: json['id'], 
            orgCode: json['orgCode'], 
            tenentId: json['tenentId'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['configCode'] = this.configCode;
        data['configName'] = this.configName;
        data['configVal'] = this.configVal;
        data['id'] = this.id;
        data['orgCode'] = this.orgCode;
        data['tenentId'] = this.tenentId;
        return data;
    }
}